<head>
	<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>assets/css/style_print.css" />
	<script type="text/javascript" src="<?php echo base_url();?>assets/js/jquery.min.js"></script>
	<script type="text/javascript" src="<?php echo base_url();?>assets/js/jquery.dataTables.min.js"></script>
	<script type="text/javascript">
	$(document).ready(function() {
		// Result set too big to use data tables
		// $('#report_table').dataTable( { "bPaginate": false } );
	} );
	</script>
</head>

<h2>List Volumes by Branch</h2>

<p><?php echo $volumes->num_rows() ?> results returned.</p> 

<table id="report_table">
<thead>
<tr>
	<th>Accession Number</th>
	<th>Call Number</th>
	<th>Title</th>
	<th>Publisher</th>
	<th>Publisher Date</th>
	<th>ISBN</th>
	<th>Location ID</th>
	<th>Catalogue Date</th>

</tr>
</thead>
<tbody>
<?php
foreach ($volumes->result() as $volume)
{
	echo '<tr>';
	
	// Details
	echo '<td>' . $volume->access_id . '</td>';
	echo '<td>' . $volume->call_number . '</td>';
	echo '<td>' . $volume->title . '</td>';
	echo '<td>' . $volume->publisher_name . '</td>';
	echo '<td>' . $volume->publisher_date . '</td>';
	echo '<td>' . $volume->isbn . '</td>';
	echo '<td>' . $volume->location_id . '</td>';
	echo '<td>' . $volume->catalogue_date . '</td>';
	
	// Actions
	//echo '<td>';
	//echo anchor('admin/volume_management/view/' . $volume->access_id, 'View') . '/';
	//echo anchor('admin/volume_management/modify/' . $volume->access_id, 'Modify') . '/';
	//echo anchor('admin/volume_management/delete/' . $volume->access_id, 'Delete');
	//echo '</br></td>';
	//echo '</tr>';
}
?>
</tbody>
</table>